let suitsDemo = ["header","spades"]

function pickCard(x):any{
    if(typeof x == "object"){
        let pickedCard = Math.floor(Math.random()*x.length)
        return pickedCard
    }else if(typeof x == "number"){
        let pickedSuit = Math.floor(x / 13);
        return { suit: suitsDemo[pickedSuit], card: x % 13 };
    }
}